Skip to main content

All Questions

0votes
4answers
1kviews

Prefixing a number with + on html inputs

When asking for positive number inputs on html, is it valid to allow + on the textbox? Like +42? Surely the + sign gets removed during server-side processing. But will allowing + be fine on the html ...
lightning_missile's user avatar
1vote
3answers
707views

How far should I validate user input in my own created API?

I got something here that bogs my mind a bit. Let's say I write me this API (in TS), check out some of these properties: export class MyAPI{ propertyThatShouldContainSuffix:Array<...
Or Yaniv's user avatar
0votes
1answer
77views

Should formatter do validation?

Say I have a SSN field in a form. I want SSN to be in format of xxx-xx-xxx. I may just have a SSN formatter checking whether the input are all digits and adding dashes when necessary. Another ...
Gqqnbig's user avatar
8votes
2answers
2kviews

What is best practice to handle whitespaces when letting the user edit the configuration, the name=value pairs?

For instance, you let the user define the notorious path variable. How do you interpret apppath = C:\Program Files\App? This looks like a programming language adopted practice to ignore the white ...
Val's user avatar
  • 367
0votes
2answers
335views

How should a website validate a users mailing address?

This is for a site that relies on shipping items via UPS or FedEx. I know there is software out there that does it (http://en.wikipedia.org/wiki/Coding_Accuracy_Support_System), but if you are trying ...
sank's user avatar
5votes
8answers
2kviews

Data validation best practices: how can I better construct user feedback?

Data validation, whether it be domain object, form, or any other type of input validation, could theoretically be part of any development effort, no matter its size or complexity. I sometimes find ...
110votes
25answers
44kviews

How far should one take e-mail address validation?

I'm wondering how far people should take the validation of e-mail address. My field is primarily web-development, but this applies anywhere. I've seen a few approaches: simply checking if there is an ...
Lauren's user avatar
  • 1,269

close